
/* <<< COPYRIGHT START >>>
 * Copyright 2006-Present OxygenSoftwareLibrary.com
 * Licensed under the GNU Lesser General Public License.
 * http://www.gnu.org/licenses/lgpl.html
 * 
 * @author: Ugorji Dick-Nwoke
 * <<< COPYRIGHT END >>>
 */


package oxygen.tool.wlfacade.plugins;

import oxygen.tool.facade.FacadePluginAdapter;
import oxygen.tool.wlfacade.WLFacadeContextHelper;
import oxygen.tool.wlfacade.helpers.WLConfig;

public class Get extends FacadePluginAdapter {

  public Object execute(String attname) throws Exception {
    return execute(attname, false);
  }
  
  public Object execute(String attname, boolean isStr) throws Exception {
    WLFacadeContextHelper wlctx = new WLFacadeContextHelper(ctx);
    if(isStr) {
      return WLConfig.getattstr(wlctx, attname);
    } else {
      return WLConfig.getatt(wlctx, attname);
    }
  }
  
}

